import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 数据类
 */
public class Data {
    private static Map<String, OrderInfo> orderMap = new HashMap<>();

    public static void addOrder(String phone, String time, List<Person> personList) {
        orderMap.put(phone, new OrderInfo(time, phone, personList));
    }
    public static OrderInfo findOrder(String phone) {
        return orderMap.get(phone);
    }
}
